//路由配置
import { createRouter,createWebHistory } from "vue-router";
//引入首页面组件
import Home from '../views/Home.vue'
const router = createRouter({
    history: createWebHistory(),
    routes:[
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: Home
        }
    ]
})
export default router